@extends('layouts.app')
@section('styles')
    <link rel="stylesheet" href="{{ asset('css/article.css') }}">
@stop
@section('content')
    <div class="row mb-5">
        <div class="col-lg-9 col-md-9 article-list">

                <div class="whitebg lanmu ">
                    @if(substr($user->avatar,0,4) != 'http')
                        <img src="{{asset('admin/upload')}}/{{ $user->avatar }}">
                    @else
                        <img src="{{ $user->avatar }}" >
                    @endif
                    <h1>我的个人博客</h1>
                    <p>{{ $user->introduction }}</p>
                </div>

                <div class="card page-header">
                    {{-- 话题列表 --}}
                    @include('articles._article_list', ['articles' => $articles])
                </div>
        </div>

        <div class="col-lg-3 col-md-3 sidebar">
            @include('layouts._sidebar')
        </div>
    </div>
    @endsection